package com.kinyx.framework.file;

import org.junit.Assert;
import org.junit.Test;

public class KPathUtils_Tester_package2path {

	@Test
	public void test() {
		Assert.assertEquals(null, KPathUtils.package2path(null));
		Assert.assertEquals(null, KPathUtils.package2path("null"));

		Assert.assertEquals("/", KPathUtils.package2path(""));
		Assert.assertEquals("/", KPathUtils.package2path(" "));

		Assert.assertEquals("/null", KPathUtils.package2path(" null "));
		Assert.assertEquals("/foo", KPathUtils.package2path("foo"));
		Assert.assertEquals("/foo", KPathUtils.package2path(" foo "));

		Assert.assertEquals("/com/kinyx/framework/file/KPathUtils", KPathUtils.package2path("com.kinyx.framework.file.KPathUtils"));
	}

}
